/*
 * @Description: 签到
 * @Author: iamsmiling
 * @Date: 2021-05-26 21:41:21
 * @LastEditTime: 2021-06-12 12:19:35
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/domain/local/clock/clock_day_entity.dart';
import 'package:credit_business_circle/domain/remote/task/user_task_entity.dart';
import 'package:get/get.dart';

class ClockController extends GetxController {
  List<ClockDayEntity> days = List.generate(
      30,
      (index) => ClockDayEntity(
          date: "${index + 1}",
          clocked: index + 1 < 4,
          isToday: index + 1 == 4));

  List<UserTaskEntity> newUserTasks = [
    UserTaskEntity(
      label: "完善个人资料100%",
      description: "完成奖励改名卡x1",
      icon: R.image.profileEdit,
      extra: "(限1次)",
      status: TaskStatus.done,
    ),
    UserTaskEntity(
      label: "发布合作信息",
      description: "完成奖励置顶卡x1",
      icon: R.image.cooperationPublish,
      extra: "(限1次)",
      status: TaskStatus.none,
    ),
    UserTaskEntity(
      label: "累计邀请30名好友",
      description: "完成奖励VIP月卡x1",
      icon: R.image.addFrined,
      extra: "(限1次)",
      status: TaskStatus.done,
    ),
  ];

  List<UserTaskEntity> dailyTasks = [
    UserTaskEntity(
      label: "邀请好友",
      description: "当日邀请一位有效好友， 奖励联系卡X1",
      icon: R.image.profileEdit,
      extra: "(每日可完成一次)",
      status: TaskStatus.ing,
    ),
  ];
}
